golang.org/x/tools/go/packages.loaderPackage.goVersion (field)

6 uses

	golang.org/x/tools/go/packages (current package)
		packages.go#L699: 	goVersion       int              // minor version number of go command on PATH
		packages.go#L816: 			goVersion: response.GoVersion,
		packages.go#L1168: 	if _, err := fmt.Sscanf(runtime.Version(), "go1.%d", &runtimeVersion); err == nil && runtimeVersion < lpkg.goVersion {
		packages.go#L1173: 					Msg:  fmt.Sprintf("This application uses version go1.%d of the source-processing packages but runs version go1.%d of 'go list'. It may fail to process source files that rely on newer language features. If so, rebuild the application using a newer version of Go.", runtimeVersion, lpkg.goVersion),
		packages.go#L1254: 	} else if ld.externalDriver && lpkg.goVersion != 0 {
		packages.go#L1257: 		tc.GoVersion = fmt.Sprintf("go1.%d", lpkg.goVersion)